{{useCss "/app-pages/css/admin.scss",["/admin/*","/admin.html"]}}
{{#include '/app-pages/pages/public/top.html'}}

<div class="admin_title">{{admin_title}}</div>

<div class="body">
{{#teleporter 'admin'}}
</div>

<script type="text/vm">
function(vm) {
	Path.registerjSouperRoute("/admin/:admin_page?", function(loc) {
		var _emit_lock = true;
		var admin_page = this.params.admin_page;
		//console.log(admin_page);
		return ({
			stop_emit:true,//因为是2级路由，事件已经出发过了，阻止事件再次捕获触发
			href: loc.href,
			html: "/app-pages/pages/admin/",
			js: "/app-pages/js/admin/",
			css: "/app-pages/css/admin/",
			prefix: "/admin/", //URL-pathname中无用的前缀部分，用来过滤href得出pagename
			tel: "admin",
			default: "main",
			pagename_handler: function(pagename) { //过滤出来的pagename在这里处理·二次处理pagename
				//过滤掉后缀
				return jSouper.$.lst(pagename, ".") || pagename;
			},
			index: 1,
			vm: vm
		});
	});
}
</script>
